package dept;

public class Main {
    public static void main(String[] args) {
//        Department department = null;
//
//        department = new HR("人力资源部","张红",5,"负责公司的人才招聘和培训",15);
//        department.printIntro();
//
//        department = new RD("研发部","李响",50,"负责公司产品研发",4);
//        department.printIntro();

        Department[] depts = new Department[]{
                new HR("人力资源部","张红",5,"负责公司的人才招聘和培训",15),
                new RD("研发1部","李响",50,"负责公司物流产品研发",4),
                new RD("研发2部","张明",60,"负责公司核心产品研发",10),
                new RD("研发3部","赵云",30,"负责公司采购产品研发",2)
        };
        for (Department dept:depts) {
            dept.printIntro();
        }
    }
}
